% decreases remaining time for each synapse in given
% connectome if synapse after decreasing the time has remaining time equal
% to 0 its activity is set to "1"
function obj = decreaseSynapsesRemainingTime(obj)
    for i=1:length(obj.synapses)
        if(obj.synapses(1,i).remainingTime >1)
            obj.synapses(1,i).remainingTime = obj.synapses(1,i).remainingTime - 1;
        elseif (obj.synapses(1,i).remainingTime == 1)
            obj.synapses(1,i).remainingTime = obj.synapses(1,i).remainingTime - 1;
            obj.synapses(1,i).active = 1;
        end
    end
end